﻿<%@ Page Title="PO Approval" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="PoApproval.aspx.cs" Inherits="Pages_PoApproval" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

            .resTbl tr:nth-of-type(odd) {
                background-color: #CDE2FF;
            }

            .resTbl tr:nth-of-type(1) {
                display: none;
            }

            .resTbl td:nth-of-type(1):before {
                content: "Purchase Order";
            }

            .resTbl td:nth-of-type(2):before {
                content: "Sample Order";
            }

            .resTbl td:nth-of-type(3):before {
                content: "Company Name";
            }

            .resTbl td:nth-of-type(4):before {
                content: "Primary Mobile";
            }

            .resTbl td:nth-of-type(5):before {
                content: "Company Address";
            }

            .resTbl td:nth-of-type(6):before {
                content: "City";
            }

            .resTbl td:nth-of-type(7):before {
                content: "State";
            }

            .resTbl td:nth-of-type(8):before {
                content: "Country";
            }

            .resTbl td:nth-of-type(9):before {
                content: "Product Name";
            }

            .resTbl td:nth-of-type(10):before {
                content: "Purity type";
            }

             .resTbl td:nth-of-type(11):before {
                content: "PSD TYPE";
            }
              .resTbl td:nth-of-type(12):before {
                content: "Surface Area";
            }
               .resTbl td:nth-of-type(13):before {
                content: "Mill Type";
            }
                .resTbl td:nth-of-type(14):before {
                content: "Current Stock";
            }
               
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="Server">
    

    <asp:GridView ID="grdPoOrder" runat="server" AutoGenerateColumns="False" CssClass="resTbl" 
        OnRowCommand ="gridMembersList_RowCommand" >
        <Columns>
            <asp:BoundField DataField="PO_ID" HeaderText="Purchase Order" SortExpression="PO_ID" />
            <asp:BoundField DataField="IS_SAMPLE" HeaderText="Sample Order" SortExpression="IS_SAMPLE" />
            <asp:BoundField DataField="company_name" HeaderText="Company Name" SortExpression="company_name" />
            <asp:BoundField DataField="Primary_Mobile" HeaderText="Primary Mobile" SortExpression="Primary_Mobile" />
            <asp:BoundField DataField="Company_address" HeaderText="Company Address" SortExpression="Company_address" />
            <asp:BoundField DataField="city" HeaderText="City" SortExpression="city" />
            <asp:BoundField DataField="state" HeaderText="State" SortExpression="state" />
            <asp:BoundField DataField="country" HeaderText="Country" SortExpression="country" />
            <asp:BoundField DataField="Product_Name" HeaderText="Product Name" SortExpression="Product_Name" />
            <asp:BoundField DataField="Purity_type" HeaderText="Purity Type" SortExpression="Purity_type" />
            <asp:BoundField DataField="PSD_TYPE" HeaderText="PSD TYPE" SortExpression="PSD_TYPE" />
            <asp:BoundField DataField="Surface_area_type" HeaderText="Surface Area" SortExpression="Surface_area_type" />
            <asp:BoundField DataField="mill_type" HeaderText="Mill Type" SortExpression="mill_type" />
            <asp:BoundField DataField="stock_in_kg" HeaderText="Current Stock" SortExpression="stock_in_kg" />

            <asp:TemplateField HeaderText="Edit">
                <ItemTemplate>
                    <asp:LinkButton CommandName="Accept" OnClientClick="return confirm('Approve Order ? ');" ID="lnkAccept" runat="server" Text="Accept Order"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
           <%-- <asp:TemplateField HeaderText="Delete">
                <ItemTemplate>
                    <asp:LinkButton ID="linkDelete" CommandName="delete" runat="server" Text="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?');" CommandArgument='<%# Eval("CONTACT_ID") %>' OnClick="linkDelete_Click"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>

</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
</asp:Content>

